﻿using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.UI;
public class EzToggle : Toggle{
    public override void OnPointerClick(PointerEventData eventData)
    {
        Debug.Log("OnPointerClick");
        if (isOn)
        {
            isOn = false;
        }
        else
        {
            isOn = true;
        }
    }
}
